package jp.co.baka.pachinko.util;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

public class MyContrller extends Controller {

    @Override
    protected Navigation run() throws Exception {

        return null;
    }


    /**
     * コントローラで例外発生時
     *
     */
    protected Navigation handleError(Throwable e) throws Throwable {
        e.printStackTrace();
        LogicalErrors.addErrMessage(e.getMessage());
        return forward("../common/error.jsp");
    }



    @Override
    public Navigation setUp(){

        System.out.println("before");
        System.out.println(RequestUtil.debugRequest(request));

        return null;
    }

    @Override
    public void tearDown(){
        System.out.println("after");
        System.out.println(RequestUtil.debugRequest(request));

    }

}
